package com.cskaoyan.mapper;

import com.cskaoyan.bean.bo.CategoryBO;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.po.CategoryPO;
import com.cskaoyan.bean.vo.CategoryL1VO;
import com.cskaoyan.bean.vo.CategoryVO;

import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/5 16:12
 */
public interface CategoryMapper {
    List<CategoryPO> selectCategory(BaseParam baseParam);

    int addCategory(CategoryBO categoryBO);

    CategoryVO selectCategoryById(Integer id);

    int updateCategory(CategoryBO categoryBO);

    int deleteCategory(Integer id);

    int selectCategoryCount();

    int selectCategoryL1Count();

    List<CategoryPO> selectCategoryByPid(Integer id);

    List<CategoryL1VO> selectCategoryLevel1();
}
